package com.qzh.baseStruct;

public class ClassTest {
    private String  info;
    private int num = 100;
    public String getInfo() {
        return info;
    }
public void work(){
    System.out.println("ClassTest is working");
}
    @Override
    public String toString() {
        return info;
    }

    @Override
    public boolean equals(Object obj) {
       return this.getInfo().equals(obj.toString());
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
